cmake_minimum_required (VERSION 3.6)

project(rplatform)

aux_source_directory(platform/cmsis DIR_LIB_SRCS)
add_library(${PROJECT_NAME} ${DIR_LIB_SRCS})

target_include_directories(${PROJECT_NAME} PUBLIC "platform")

add_dependencies(${PROJECT_NAME} kernal_rtos kernal_cmsis ulog cmsis_mem)
target_link_libraries(${PROJECT_NAME} kernal_cmsis kernal_rtos ulog cmsis_mem)
target_compile_options(${PROJECT_NAME} PRIVATE -g)